<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('审读样本列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>


                        <li class="select-time">
                            <label style="width: 100px">受理时间范围：</label>
                            <input type="text" class="time-input" id="startTime" placeholder="开始时间"
                                   name="params[beginTime]"/>
                            <span>-</span>
                            <input type="text" class="time-input" id="endTime" placeholder="结束时间"
                                   name="params[endTime]"/>
                        </li>

                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
            <!-- $.operate.add()     $.operate.addTab()        -->

            <a class="btn btn-warning" onclick="$.table.exportExcel()" >
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">

    var prefix = ctx + "statistics";
    $.table.serialNumber();
    // 获取数据字典数据
    var datas = [[${@dict.getType('review_sample_medium')}]];

    $(function () {
        var options = {
            url: prefix + "/listIdSampleNumberDay",
            exportUrl: prefix + "/exportIdSampleNumberDay",
            modalName: "样本数量每日统计",
            columns: [

                {
                    field: 'index',
                    align: 'center',
                    title: "序号",
                    formatter: function (value, row, index) {
                        var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
                        return columnIndex + $.table.serialNumber(index);
                    }
                },

                {
                    field: 'times',
                    title: '日期',
                    align: 'center',
                },
                {
                    field: 'registerNum',
                    title: '立案数量',
                    align: 'center',
                },
                {
                    field: 'sampleNum',
                    title: '样本数量',
                    align: 'center',
                },

                {
                    field: 'legal',
                    title: '正式出版物',
                    align: 'center',
                },
                {
                    field: 'illegal',
                    title: '非法出版物',
                    align: 'center',
                },
                {
                    field: 'otherlegal',
                    title: '其他',
                    align: 'center',
                },
                {
                    field: 'wait',
                    title: '待鉴定',
                    align: 'center',
                },

            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>